/*
 * 文件名：AdminInfoMapper.java
 * 版权：Copyright by www.huawei.com
 * 描述：
 * 修改人：ZhangBo
 * 修改时间：2012-5-2
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
 */

package com.chinasoftosg.sicap.pojo.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.chinasoftosg.sicap.pojo.AdminInfo;

public class AdminInfoMapper implements RowMapper<AdminInfo>
{
    
    public AdminInfo mapRow(ResultSet rs, int rowNum) throws SQLException
    {
        AdminInfo adminInfo = new AdminInfo();
        adminInfo.setAdminId(rs.getInt("ADMIN_ID"));
        adminInfo.setAdminName(rs.getString("ADMIN_NAME"));
        adminInfo.setAdminPassword(rs.getString("ADMIN_PASSWORD"));
        adminInfo.setRoleId(rs.getInt("ROLE_ID"));
        return adminInfo;
    }
    
}
